﻿@model BTKERP.Model.Product

@{
    ViewBag.Title = "Product";
}

<h2>Product Details</h2>

<fieldset>
    <legend>@Model.Name</legend>
    <table>
        <tbody>
            <tr>
                <td>
                    <div class="display-field">
                        <b>Code : </b>@Html.DisplayFor(model => model.Code)
                    </div>
                </td>
                <td>
                    <div class="display-field">
                        <b>Name : </b>@Html.DisplayFor(model => model.Name)
                    </div>
                </td>
                <td>
                    <div class="display-field">
                        <b>Physical Unit Barcode : </b>@Html.DisplayFor(model => model.PhysicalBarcode)
                    </div>
                </td>
            </tr>
            <tr><td colspan="3"><br /></td></tr>
             <tr>
                <td>
                    <div class="display-field">
                        <b>Pack Unit Barcode :</b>@Html.DisplayFor(model => model.PackBarcode)
                    </div>
                </td>
                <td>
                    <div class="display-field">
                        <b>Description : </b>@Html.DisplayFor(model => model.Description)
                    </div>
                </td>
                <td>
                    <div class="display-field">
                        <b>Category : </b> @BTKERP.MVCWeb.AppCode.DataRefHelper.GetCategoryById(Model.CategoryId)
                    </div>
                </td>
            </tr>
            <tr><td colspan="3"><br /></td></tr>
             <tr>
                <td>
                    <div class="display-field">
                        <b>Physical Unit : </b> @BTKERP.MVCWeb.AppCode.DataRefHelper.GetUnitById(Model.PhysicalUnitId)
                    </div>
                </td>
                <td>
                    <div class="display-field">
                        <b>Pack Unit : </b> @BTKERP.MVCWeb.AppCode.DataRefHelper.GetUnitById(Model.PackUnitId)
                    </div>
                </td>
                <td>
                    <div class="display-field">
                        <b># Pack int Paysical(Unit) :</b>@Html.DisplayFor(model => model.NumberPerPhysical)
                    </div>
                </td>
            </tr>
            <tr><td colspan="3"><br /></td></tr>
             <tr>
                <td>
                   
                </td>
                <td>
                    <div class="display-field">
                        <b>Physical Price : </b>@Html.DisplayFor(model => model.PhysicalSalePrice)
                    </div>    
                </td>
                <td>
                    <div class="display-field">
                        <b>Physical Pack Price : </b>@Html.DisplayFor(model => model.PackSalePrice)
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
   
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>
